const webpack = require('webpack');
const middleware = require('webpack-dev-middleware');
const webpackOptions = require('./webpack.config.js');

// 本地的开发环境默认就是使用 development mode
webpackOptions.mode = 'development'

const compiler = webpack(webpackOptions)
const express = require('express')
const app = express();

app.listen(3000, () => console.log('Example app listening on port 3000!'))